<html lang="en">
<head>

<meta charset="utf-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- Le styles -->
    <link href="css/bootstrap.css" rel="stylesheet">
    <style>
      body {
        padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
      }
    </style>
    <link href="css/bootstrap-responsive.css" rel="stylesheet">


<title>Poisson Binomial Test</title>


<style type="text/css">

div.file {
    background-color:lightgray;
    padding:3mm ;
    display: inline-block;
	}
</style>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-32661354-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</head>
<body>

    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <a class="brand" href="index.html">Poisson Binomial Test</a>
            <ul class="nav">
              <li><a href="index.html">Produce a report</a></li>
              <li class="active"><a href="#">File Format</a></li>
              <li><a href="assumptions.html">Experimental Setup</a></li>
            </ul>
        </div>
      </div>
    </div>

<div class="container">
<h2>File Format</h2>
	<p>
	The loss file must contain all the test information for all your algorithms on all datasets. 
	</p>

	<ul>
	<li>Each dataset section is identified with the name of the dataset in square brackets</li>
	<li>After the dataset name, a tab delimited table provides the loss information for all algorithms on all test samples of the current dataset</li>
	<ul>
	<li>The first row of this table provides the name of the algorithms</li>
	<li>Then, the loss values contains the penalty incurred for the prediction of one algorithm on one test case </li>
	<li>A row must contain the loss of all algorithms on the same test case</li>
	</ul>
	<li>An empty line or a line starting with # is ignored</li>
	</ul>


<h2>Example</h2>
	<p>
	Here is a dummy example for the zero-one loss (you can obtain a real example <a href="lossLDD.txt">here</a>). Also, note that this test is only available for the zero-one loss for now. It will be generalized soon...
	</p>
	<div class="file">
	<table >
		<tr><td>[dataset1]</td></tr>
		<tr><td>
		<table>
			<tr>
			<td>algo1&nbsp;&nbsp;</td>
			<td>algo2&nbsp;&nbsp;</td>
			<td>algo3</td>
			</tr>
			<tr><td>1</td><td>0</td><td>1</td> </tr>
			<tr><td>0</td><td>0</td><td>0</td> </tr>
			<tr><td>0</td><td>1</td><td>0</td> </tr>
			<tr><td>0</td><td>0</td><td>0</td> </tr>
		</table>
		</td></tr>
		<tr><td>[dataset2]</td></tr>
		<tr><td>
		<table>
			<tr>
			<td>algo1&nbsp;&nbsp;</td>
			<td>algo2&nbsp;&nbsp;</td>
			<td>algo3</td>
			</tr>
			<tr><td>0</td><td>0</td><td>1</td> </tr>
			<tr><td>0</td><td>0</td><td>0</td> </tr>
			<tr><td>0</td><td>1</td><td>0</td> </tr>
			<tr><td>1</td><td>0</td><td>1</td> </tr>
			<tr><td>0</td><td>0</td><td>0</td> </tr>
		</table>
		</td></tr>
	</table>
	</div>
</div>
<script src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
</body>
</html>
